cd files

yum install –y samba samba-common smbfs samba-client
chkconfig smb on

cp -rf ./ftp /home
chmod -R 777 /home/ftp

cp -rf ./smb.conf /etc/samba

useradd udi
smbpasswd -a udi

service smb restart


yum install –y vsftpd
chkconfig vsftpd on

yum install –y epel-release
yum install –y db4 db4-utils

rm -rf /etc/vsftpd
cp -rf vsftpd /etc

rm /etc/pam.d/vsftpd
cp pamvsftpd /etc/pam.d/vsftpd

service vsftpd restart
